import request from "@/utils/request";

/**
 * 获取全部评论举报类型
 * @returns {AxiosPromise}
 */
export function list(param) {
    return request({
        url: '/comment-report-type/list',
        method: 'get',
        params: param
    })
}

/**
 * 添加评论举报类型
 * @returns {AxiosPromise}
 */
export function add(param) {
    return request({
        url: '/comment-report-type/add',
        method: 'post',
        data: param
    })
}

/**
 * 修改评论举报类型
 * @returns {AxiosPromise}
 */
export function update(param, uuid) {
    return request({
        url: '/comment-report-type/update/' + uuid,
        method: 'put',
        data: param
    })
}

/**
 * 删除评论举报类型
 * @returns {AxiosPromise}
 */
export function deleted(uuid) {
    return request({
        url: '/comment-report-type/delete/' + uuid,
        method: 'delete'
    })
}